import request from '@/util/request'

export function getUserList (query) {
  return request({
    url: '/user/list',
    method: 'get',
    params: query
  })
}

export function addUserList (data) {
  return request({
    url: '/user',
    method: 'post',
    data: data
  })
}

export function updateUserList (id, data) {
  return request({
    url: `/user/${id}`,
    method: 'put',
    data: data
  })
}

export function updatePassword (data) {
  return request({
    url: `/user/updatePassword`,
    method: 'post',
    data: data
  })
}
